#ifndef __APP_FLASH_H__
#define __APP_FLASH_H__
#include "bsp_flash.h"

#define CH_FRONT_16x16_FLASH_ADDR 0x00
#define CH_FRONT_16x16_FLASH_SIZE 0x80000

#define FLY_MAN_FLASH_ADDR (CH_FRONT_16x16_FLASH_ADDR + CH_FRONT_16x16_FLASH_SIZE)
#define FLY_MAN_FLASH_SIZE 0x190000

#define WEATHER_BMP_FLASH_ADDR (FLY_MAN_FLASH_ADDR + FLY_MAN_FLASH_SIZE)
#define WEATHER_BMP_FLASH_SIZE 0x1E0000

#define MUSIC_BMP_FLASH_ADDR (WEATHER_BMP_FLASH_ADDR + WEATHER_BMP_FLASH_SIZE)  //112KB
#define MUSIC_BMP_FLASH_SIZE 0x20000

#define CH_FRONT_32x32_FLASH_ADDR (MUSIC_BMP_FLASH_ADDR + MUSIC_BMP_FLASH_SIZE)
#define CH_FRONT_32x32_FLASH_SIZE 0x120000

#define DIGIT_BMP_FLASH_ADDR (CH_FRONT_32x32_FLASH_ADDR + CH_FRONT_32x32_FLASH_SIZE)
#define DIGIT_BMP_FLASH_SIZE 0x10000

#define BILIBILI_LOG_BMP_FLASH_ADDR (DIGIT_BMP_FLASH_ADDR + DIGIT_BMP_FLASH_SIZE)
#define BILIBILI_LOG_BMP_FLASH_SIZE 0x10000





uint8_t AppFlashWrite(uint32_t pagSize, uint16_t pagIndex, uint8_t *frontBuff);
uint8_t AppDataDown(uint32_t starAddr, uint32_t dataMaxSize);


#endif